package com.zhou.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zhou.enums.CreatorEnum;
import com.zhou.enums.LevelEnum;
import com.zhou.enums.QuesTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 题目信息表
 * </p>
 *
 * @author admin
 * @since 2023-03-02
 */
@Data
@TableName(value = "theo_ques")
  @EqualsAndHashCode(callSuper = false)
    public class TheoQues extends Model<TheoQues> implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "ques_id", type = IdType.AUTO)
      private Integer quesId;

      /**
     * 题目题干
     */
      private String contend;

      /**
     * 题目图片
     */
      private String image;

  /**
   * 题目类型 0单选题 1多选题 2判断题 3填空题
     */
      private QuesTypeEnum questionType;

      /**
     * 题目解析
     */
      private String analysis;

      /**
     * 题库来源编号
     */
      private Integer quesRepoId;

      /**
     * 题目分类编号
     */
      private Integer quesCategoryId;

    /**
     * 题目方向
     */
    private String direct;
      /**
     * 知识点
     */
      private String knowledge;

      /**
     * 题目难度 0简单 1正常 2困难
     */
      private LevelEnum level;

      /**
     * 个人or公共
     */
      private CreatorEnum creator;


      private Integer userId;
    /**
     * 创建时间
     */
        @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      /**
     * 修改时间
     */
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;
    
}
